package com.hnevc.caoliuye;

        public class homework {
            public static void main(String[] args) {
                String phone = "15364172791";
                System.out.println("手机号前3位"+phone.substring(0,3));
                System.out.println("手机号中间4位"+phone.substring(3,7));
                System.out.println("手机号后4位"+phone.substring(7));
                String phoneNumber = (phone.substring(0,3)+"****"+phone.substring(7));
                System.out.println("手机号:"+phoneNumber);
            }
        }

